import Vue from 'vue'
import VueRouter from 'vue-router'

// 前端
export const ROOT_URL = '/';


Vue.use(VueRouter)

export const routes = [
    {
        path: ROOT_URL,
        component: () => import('@/views/HomePage.vue'),
    },
];

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})


export default router
